<template>
  <h1>EL-按钮组件</h1>
<!--  如果按钮上有样式效果，说明EL组件库引入成功了-->
<!--  如果el-button有提示，说明IDEA的element插件安装成功了-->
<!--  参照比较完成以上两步-->
<!--  type切换按钮主题色 primary蓝 danger红 info灰 success绿 warning黄-->
<!--  plain镂空按钮 round圆角按钮 circle圆形按钮 disabled禁用按钮-->
  <el-button type="primary" disabled>蓝按钮</el-button>
  <el-button type="success" plain>绿按钮</el-button>
  <el-button type="danger" round>红按钮</el-button>
  <el-button type="warning" circle>黄按钮</el-button>
  <el-button type="info">灰按钮</el-button>

  <hr>
  
<!--  链接按钮-->
  <a href="https://www.baidu.com">
    <el-button link type="primary" plain>百度</el-button>
  </a>

  <div>
    <el-button :icon="Search" circle />
    <el-button type="primary" :icon="Edit" circle />
    <el-button type="success" :icon="Check" circle />
    <el-button type="info" :icon="Message" circle />
    <el-button type="warning" :icon="Star" circle />
    <el-button type="danger" :icon="Delete" circle />
  </div>
</template>

<script setup>
import {
  Check,
  Delete,
  Edit,
  Message,
  Search,
  Star,
} from '@element-plus/icons-vue'
</script>

<style scoped>

</style>